
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include/unwind

$(warning  $(NDK_PROJECT_PATH))
LOCAL_MODULE := CBackTrace
LOCAL_SRC_FILES :=  CBackTrace.cpp stringprintf.cpp 
 
MY_CPP_LIST := $(wildcard $(LOCAL_PATH)/libbacktrace/*.cpp)
LOCAL_SRC_FILES += $(MY_CPP_LIST:$(LOCAL_PATH)/%=%)  
$(warning  $(LOCAL_SRC_FILES))

LOCAL_LDFLAGS += -L$(wildcard $(LOCAL_PATH)/armeabi) -lunwind
LOCAL_LDFLAGS += -L$(wildcard $(LOCAL_PATH)/armeabi) -lunwind-ptrace


LOCAL_LDLIBS :=-llog 
$(warning  $(LOCAL_PATH))
include $(BUILD_SHARED_LIBRARY) 


include $(CLEAR_VARS)
LOCAL_MODULE := TestCBackTrace
LOCAL_SRC_FILES :=  test.cpp
LOCAL_LDFLAGS += -L$(wildcard $(LOCAL_PATH)/../libs/armeabi) -lCBackTrace
$(warning  $(wildcard $(LOCAL_PATH)/../libs/armeabi))
include $(BUILD_EXECUTABLE)